Skip to content

Conversation

@hashicc
Copy link
Collaborator

@hashicc hashicc commented Nov 26, 2025

Description

This PR removes ember-cli-clipboard and the single CopyButton usage in our rose code editor toolbar.

Screenshots (if appropriate)

Before

image

After

image

How to Test

  1. Go to current code editor usage in main (eg: main vercel deployment) and compare against this branch (eg: this branch's vercel deployment)
  2. The functionality should be the same

Checklist

  • I have added before and after screenshots for UI changes
  • I have added JSON response output for API changes
  • I have added steps to reproduce and test for bug fixes in the description
  • I have commented on my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added a11y-tests label to run a11y audit tests if needed

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.
  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
  • If applicable, I've documented the impact of any changes to security controls.
    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

@vercel
Copy link

vercel bot commented Nov 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
boundary-ui Ready Ready Preview Comment Dec 1, 2025 9:28pm
boundary-ui-desktop Ready Ready Preview Comment Dec 1, 2025 9:28pm

<CopyButton
@text={{@copyText}}
<Hds::Copy::Button
@text='Copy code'
Copy link
Collaborator Author

@hashicc hashicc Nov 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@text is a different argument on Hds::Copy::Button (button text) than the ember-cli-clipboard CopyButton (the text to copy)

@hashicc hashicc changed the title Remove ember cli clipboard Remove ember-cli-clipboard Nov 26, 2025
@hashicc hashicc force-pushed the remove-ember-cli-clipboard branch from 2121925 to 8105022 Compare November 26, 2025 18:07
@hashicc hashicc marked this pull request as ready for review November 26, 2025 18:34
@hashicc hashicc requested a review from a team as a code owner November 26, 2025 18:34
@hashicc hashicc force-pushed the remove-ember-cli-clipboard branch from 62b5c1b to 62795d3 Compare December 1, 2025 15:50
@hashicc hashicc force-pushed the remove-ember-cli-clipboard branch from 62795d3 to d6ab93d Compare December 1, 2025 16:05
@hashicc hashicc force-pushed the remove-ember-cli-clipboard branch from d6ab93d to cf8f241 Compare December 1, 2025 16:06
@hashicc hashicc force-pushed the remove-ember-cli-clipboard branch from cf8f241 to 52b69eb Compare December 1, 2025 16:08
The hds copy button uses the browser clipboard api. The writeText
api can fail if the window is not active. This does not happen in
practice because the window has to be active to be clicked by the
user. But in tests with synthetic triggers this can fail.

Stubbing the writeText method is also how hds tests their
component:
https://github.com/hashicorp/design-system/blob/990981b5741f9a6bf28d100c330b7865ba74e506/showcase/tests/integration/components/hds/copy/button/index-test.gts#L20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant